package com.bw.lyc.network;


import com.bw.lyc.mvp.base.model.BaseEntity;

import io.reactivex.annotations.NonNull;
import io.reactivex.functions.Function;

/**
 * 针对网络请求中RXjava异步任务调度时子类向基类转型的工具类
 * */

public class ChangeFunction<T extends BaseEntity>
        implements Function<T, BaseEntity> {

    @Override
    public BaseEntity apply(@NonNull T t) throws Exception {
        return t;
    }
}
